package controller;

import ...

@WebServlet( name = "HelloServlet", urlPATTERNS = "/HelloServlet")
)

public class HelloServlet  extends  Httpservlet{
    protected  void  doPost )HttpservletRequest request, HttpServletResponse response) throws SerletException{
        response.setContType("text/html;charset-UTF-8")//解决中文乱码
        response.getWriter().write(s:"web 我来了 ")

    }
    protected  void  doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,{
        doPost(request,reponse);
    }
}

